import { allElFormItemsOptions, loadComOptions } from "@/utils/loadComOptions";

const getElCom = new allElFormItemsOptions(),
  getElComOption = new loadComOptions(),
  defaultColum = (): Array<elComAttrAndFunType[]> => [
    [
      getElCom.getInput(
        {
          span: 4
        },
        {
          label: "手机号",
          prop: "phonenumber",
        }
      ),
      getElCom.getInput(
        {
          span: 4
        },
        {
          label: "用户名",
          prop: "username"
        }
      ),
      getElCom.getSelect(
        {
          span: 4,
          dict: "account_status"
        },
        {
          label: "账号状态",
          prop: "status"
        }
      ),
      {
        formItem: {
          prop: "btn"
        },
        slot: "operation",
        span: 5
      }
    ]
  ];
export default {
  form: getElComOption.getFormOptions({
    labelWidth: "65px"
  }),
  countInter: getElComOption.countInter(defaultColum()),
  dicts: getElComOption.countDict(defaultColum()),
  columns: defaultColum()
} as FyhComOptions;
